<?php
	$news = new News();
	if (isset($news_id))
	{
		$news->select($news_id);
		if (isset($delete)) {
			$picture = new Picture();
			$picture->select($news->getthm_picture());
			$news->delete();
			$picture->delete();
			admin_load("Tin tức đã được xoá khỏi CSDL", "?act=news_manager");
		}
	}
	if ($news || isset($add)) {
		include "tpl/edit_news_form.php";
	} else {
		echo "Tin tức không tồn tại";
	}
?>